<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>搜索-老师上课代码</title>
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <link rel="stylesheet" href="./css/searchList.css">
</head>

<body>
<header class="lt_header">
    <h4 class="lt_title">
        <a class="lt_h_left" href="javascript:history.back();">
            <span class="fa  fa-arrow-left"></span>
        </a>
        搜索中心

        <!-- search -->
    </h4>
</header>
<div class="lt_container">
    <!--下拉刷新容器-->
    <div id="refreshContainer" class="mui-content mui-scroll-wrapper">
        <div class="mui-scroll">
            <!-- 搜索表单 -->
            <div class="search_form">
                <!--
                  当button按钮放在form里面的时候 当点击 会像submit按钮一样 会自己做提交
                  通过加一个 type=button 不会刷新页面
                 -->
                <form class="mui-clearfix" action="">
                    <input class="searchTxt" type="text">
                    <button class="searchBtn" type="button">搜索</button>
                </form>
            </div>
            <!-- 排序工具栏 -->
            <div class="order_tool mui-clearfix ">
                <a data-sortname="" href="javascript:;">
                    上架时间
                    <span class="mui-icon mui-icon-arrowdown"></span>
                </a>
                <a data-sortname="price" href="javascript:;">
                    价格
                    <span class="mui-icon mui-icon-arrowdown"></span>
                </a>
                <a data-sortname="num" href="javascript:;">
                    销量
                    <span class="mui-icon mui-icon-arrowdown"></span>
                </a>
                <a data-sortname="" href="javascript:;">
                    折扣
                    <span class="mui-icon mui-icon-arrowdown"></span>
                </a>
            </div>
            <!-- 商品列表 -->
            <div class="lt_goods">
                <ul class=" lt_goods_ul mui-clearfix">

                </ul>
            </div>
        </div>
    </div>
</div>
<footer class="lt_footer mui-clearfix">
    <a  href="./index.html">
        <span class="mui-icon mui-icon-home"></span>
        <p>首页</p>
    </a>
    <a href="./category.html">
        <span class="mui-icon mui-icon-bars"></span>
        <p>分类</p>
    </a>
    <a href="./cart.html">
        <span class="fa fa-shopping-cart"></span>
        <p>购物车</p>
    </a>
    <a href="./user/index.html">
        <span class="fa fa-user"></span>
        <p>会员中心</p>
    </a>
</footer>
</body>

<!-- 商品数据的模板 -->
<script type="text/html" id="goodsTpl" >
    {{each data as item16 }}
    <li>
        <div class="lt_item">
            <img src="{{item16.pic[0].picAddr}}" alt="">
            {{item16.num}}
            <div class="product_info">
                {{item16.proName}}
            </div>
            <p>
                <span class="new_price">￥{{item16.price}}</span>
                <span class="old_price">￥{{item16.oldPrice}}</span>
            </p>
            <a href="./product.html?id={{item16.id}}">立即购买</a>
        </div>
    </li>
    {{/each}}
</script>

<script src="./assets/mui/js/mui.js"></script>
<script src="./assets/zepto/zepto.min.js"></script>
<script src="./assets/artTemplate/template.js"></script>
<script src="./js/common.js"></script>
<script src="./js/searchList.js"></script>

</html>